<?php
require_once("conn.php");
require_once("function.php");


// $start = 3579;
$start = 0;
$path = "/home/fnsoxt/vvdict/_Shared/_Cache/sentencevoice/";

$str_num = "select count(*) as num from word_examplesentence";
$rs = mysql_query($str_num,$conn);
$num_array = mysql_fetch_array($rs);
print "total nums is " . $num_array[num] . "\n"; 
for($i=$start;$i<$num_array[num];$i=$i+100){
    $result = mysql_query("select id,En_Sen from word_examplesentence limit {$i},100",$conn);
    print $i.":\n";
    while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
        process_download($row,$path); 
    }
}
